package com.imooc.repository;

import com.imooc.dataobject.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 功能描述: <br>
 * (订单详情Repository)
 *
 * @Author:Mr. xyb
 * @Date: 2018/5/18 17:06
 * @since: 1.8.0
 * @version: 1.0.0
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {

    /**
     * 查询订单详情
     * @param orderId 订单id
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);

}
